package com.bgs.travelapp.fileManager.service;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

import javax.servlet.http.HttpServletResponse;

public interface FileManagerService {
    /**
     * 批量图片上传
     *
     * @param file
     * @return
     */
    Integer uploadPicture(MultipartFile file);

    /**
     * 根据图片id下载图片
     *
     * @param response
     * @param id
     */
    void getImageById(HttpServletResponse response, Integer id);

    /**
     *游记封面图片上传
     * hbx 2022年8月4日09:43:02
     * @param multipartRequest
     * @return
     */
    Integer uploadReicText(MultipartRequest multipartRequest);
}

